﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace CreateConfig
{
    class Program
    {
        static void Main(string[] args)
        {
            SerializableDictionary<string, string> Conf = new SerializableDictionary<string, string>(){
             {"path",@"C:\wamp\www"}  ,
             {"indexfiles", "index.php;index.htm;index.html"}
            };
            XmlSerializer[] Seri = XmlSerializer.FromTypes(new Type[] { typeof(SerializableDictionary<string, string>) });
            XmlSerializer Confi = Seri[0];
            Confi.Serialize(System.IO.File.Open("config.xml", System.IO.FileMode.OpenOrCreate), Conf);
        }
    }
}
